<?php

if (file_exists("../../mainfile.php")) {
	/**
	* Xoops required include
	*/
	include "../../mainfile.php";
} elseif (file_exists("../../../mainfile.php")) {
	/**
	* Xoops required include
	* @ignore
	*/
	include "../../../mainfile.php";
} else {
	die("Unable to locate Xoops Mainfile");
}

//Load CONFREG definitions
if (file_exists(XOOPS_ROOT_PATH."/modules/confreg/include/defines.inc")) {
	/**
	 * CONFREG non language specific constant definitions
	 */
	require_once(XOOPS_ROOT_PATH."/modules/confreg/include/defines.inc");
} else {
	die("Unable to locate CONFREG Definitions");
}

//Load CONFREG functions
if (file_exists(CONFREG_PATH."/include/functions.inc")) {
	/**
	 * XBS_Modgen common functions
	 */
	require_once(CONFREG_PATH."/include/functions.inc");
} else {
	die("Unable to locate CONFREG Common Functions");
}
/*
 * This file was generated by XBS ModGen, (c) 2006 A Kitson, UK. See http://xoobs.net
 * ModGen is a Module Code Generator for the Xoops CMS.  See http://xoops.org
 */
?>